﻿@{
    Layout = null;
}
@using ElingOA6_DSJCJ.Common;
<!DOCTYPE html>

<html>
<head>

 <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>AdminIndex</title>
<link type="text/css" href="@Url.Content("~/Content/styleadmin.css")" rel="stylesheet"  />

    <script src="@Url.Content("~/Scripts/jquery.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/focus.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/swfobject.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/png.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/floatImg.js")" type="text/javascript"></script>
<script src="@Url.Content("~/content/js/tab.js")" type="text/javascript"></script>
@Html.DevExpress().GetStyleSheets(
     
              
                        new StyleSheet { ExtensionType = ExtensionType.PopupControl, Theme = DevExpressHelper.Theme },
                          new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }


)
    @Html.DevExpress().GetScripts(
             new Script { ExtensionType = ExtensionType.ListBox },
                    
                            new Script { ExtensionType = ExtensionType.PopupControl }
                            

    )
@using ElingOA6_DSJCJ.Models;
@using ElingOA6_DSJCJ.Common;
@using System.Data;
@model  Dictionary<string, List<DocumentGridModel>> 
@{ 
    List<DocumentGridModel> documentList = new List<DocumentGridModel>();
    List<ElingOA6_DSJCJ.Model.ConfigEntry> ShowConfigEnryList = new List<ElingOA6_DSJCJ.Model.ConfigEntry>();
    int entryCount = 0;
    string key = "";//系统配置关键字


    string jsAlert = ViewData["jsAlert"] != null ? ViewData["jsAlert"].ToString() : "";
    string empName = ViewData["EmpName"] == null ? "" : ViewData["EmpName"].ToString();
    string deptName = ViewData["DeptName"] == null ? "" : ViewData["DeptName"].ToString();
    List<ElingOA6_DSJCJ.Model.Config> configList = ViewData["configList"] == null ? new List<ElingOA6_DSJCJ.Model.Config>() : ViewData["configList"] as List<ElingOA6_DSJCJ.Model.Config>;
    List<ElingOA6_DSJCJ.Model.ConfigEntry> configEntryList = ViewData["configEntryList"] == null ? new List<ElingOA6_DSJCJ.Model.ConfigEntry>() : ViewData["configEntryList"] as List<ElingOA6_DSJCJ.Model.ConfigEntry>;
    Dictionary<string, string> zlOldDic = ViewData["zlOldDic"] == null ? new Dictionary<string, string>() : ViewData["zlOldDic"] as Dictionary<string, string>;
    string zhcsUrl = System.Configuration.ConfigurationManager.AppSettings["zhcsUrl"].ToString();
}
@helper  GetConfigShowText(string keyName, string configClass, List<ElingOA6_DSJCJ.Model.Config> configList)
    {
        List<ElingOA6_DSJCJ.Model.Config> tmpList = configList.Where(s => s.FKeyName == keyName && s.FConfigClass == configClass).ToList();
        if (tmpList.Count > 0)
        {
    @:@tmpList[0].FShowText
        }

}
@helper  GetConfigValue(string keyName, string configClass, List<ElingOA6_DSJCJ.Model.Config> configList)
    {
        List<ElingOA6_DSJCJ.Model.Config> tmpList = configList.Where(s => s.FKeyName == keyName && s.FConfigClass == configClass).ToList();
        if (tmpList.Count > 0)
        {
    @:@tmpList[0].FKeyValue
        }

}
@helper  GetConfigEntryShowText(string FDocClsCd, string keyName, string configClass, List<ElingOA6_DSJCJ.Model.ConfigEntry> configEntryList)
    {
        List<ElingOA6_DSJCJ.Model.ConfigEntry> tmpEntryList = configEntryList.Where(s => s.FDocClsCd == FDocClsCd && s.FKeyName == keyName && s.FConfigClass == configClass).ToList();
        if (tmpEntryList.Count > 0)
        {
    @:@tmpEntryList[0].FShowText
        }

}
@if (false)
{
    <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
}
<script type="text/javascript">
//    $(function () {
//        if ('@ViewData["EmpName"].ToString()' != "") {
//            loginShow('@ViewData["EmpName"]', '@ViewData["DeptName"]');
//        } else {
//            logShow();
//        }
//    });


    function openshow() {
        ASPxClientPopupControl.Cast("popfirst").Show();

    }
    function closepop() {
        ASPxClientPopupControl.Cast("popfirst").Hide();
    }

    function chgid(s, e) {

        ASPxClientPopupControl.Cast("popfirst").Hide();
        var cid = s.GetSelectedValues()[0];
        // ASPxClientScheduler.Cast("scheduler").ShowAppointmentFormByServerId(schid);
        window.showModalDialog('@Url.Content("/ElingOA6_Admin_DSJCJ/Admin/Calendar/CalendarLook?cid=")' + cid, window, "dialogWidth=800px;dialogHeight=400px");
    }

    /*搜索*/
    function ToAdmin() {
        window.location.href = "/ElingOA6_Admin_DSJCJ";
    }
    function login() {
        if ($.trim($("#txtUserName").val()) == "") {
            alert("用户名不能为空");
            $("#txtUserName").focus();
            return false;
        }
        else {
            form1.submit();
        }
        return true;
    }
    function loginExit() {
        if (confirm("确定退出吗?")) {
            window.location.href = "/Index/LogExit";

        }
        else {
            return false;
        }
    }

    function logShow() {
        document.getElementById("logInput").style.display = "block";
        document.getElementById("logSuccess").style.display = "none";
    }

    function loginShow(empName, deptName) {
        document.getElementById("logInput").style.display = "none";
        document.getElementById("logSuccess").style.display = "block";

    }
</script>

    <script type="text/javascript">
        function query() {
            //        var keyName = $("#selChooseDocCls").val();
            var keyName = "-1";
            var keyText = $.trim($('#head_searchText_id').val());
            keyText = escape(keyText);
            if (keyText == "") {
                alert("请输入关键字");
            }
            else {
                window.open("/Index/DocQueryList?keyName=" + keyName + "&keyText=" + keyText, "");
            }
        }
     </script>

</head>
<body>
    <DIV style="WIDTH: 100%; MARGIN: 0px auto">
<DIV class=content><!--图片新闻-->
<DIV class=picnews>

        <div class="pic">
            <div class="sub_box">
                <div id="p-select" class="sub_nav">
                    <div class="sub_more">
                        <a style="font-family: Tahoma; font-size: 12px;" onfocus="this.blur()" title="" href="/Index/DocPicList?keyName=doc_link1&keyClass=04"
                            target="_blank">更多&gt;&gt;</a></div>
                    <div id="bd1lfsj" class="sub_no">
                        @Html.Raw(@ViewData["Select_btn"].ToString())
                    </div>
                </div>
                <div id="bd1lfimg">
                    @Html.Raw(@ViewData["Picshow_img"].ToString())
                </div>
            </div>
            <script type="text/javascript">                movec();</script>
        </div>
       
        <div class="hot">
            <div style="margin-top: 10px;" class="news_c">
                <ul>
                    @{documentList = new List<DocumentGridModel>();
                      key = "doc_link1_042";
                      if (Model.ContainsKey(key))
                      {
                          documentList = Model[key].Take(8).ToList();
                      }
                                                          
                    }
                    @foreach (DocumentGridModel documentModel in documentList)
                    {
                        <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                    }
                </ul>
            </div>
        </div>
  
</DIV>
    <!--图片新闻 END-->
    <!--通知公告-->

    
    @{ShowConfigEnryList = new List<ElingOA6_DSJCJ.Model.ConfigEntry>();
      ShowConfigEnryList = ElingOA6_DSJCJ.Controllers.IndexController.GetSelfAndChildConfigEntry(configEntryList, configEntryList.Where(c => c.FKeyName == "doc_link2" && c.FConfigClass == "04").ToList()).Take(2).ToList();

      entryCount = 0;
    }
    <div style="WIDTH:49%;" class="news">
        <div class="news_t">
            <h2>@GetConfigShowText("doc_link2", "04", configList)
            </h2>
            <span><a href="/Index/DocumentIndex?keyName=doc_link2&keyClass=04" target="_blank">更多>></a></span></div>
        <div id="Tab1">
            <div class="Menubox">
                <ul>
                    @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                    {

                        entryCount++;
                        string oneentryCount2 = "four" + entryCount;
                        string url = "/Index/DocumentIndex?keyName=" + configEntryModel.FKeyName + "&keyClass=" + configEntryModel.FConfigClass + "&indexClsCd=" + configEntryModel.FDocClsCd;
                        if (entryCount <= ShowConfigEnryList.Count())
                        {
                            if (entryCount == 1)
                            {
                           
                        <li id="four1" class="hover" onclick="setTab('four',1,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                            else
                            {
                           
                        <li id="@oneentryCount2" onclick="setTab('four',@entryCount ,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                        }
                        else
                        {

                        }
                    }
                    @* <li id="one1" class="hover" onclick="setTab('one',1,3)">基层信息</li>
                    <li id="one2" onclick="setTab('one',2,3)">本级信息</li>
                    <li id="one3" onclick="setTab('one',3,3)">统计报表</li>*@
                </ul>
            </div>
            <div class="Contentbox">
                @{entryCount = 0;}
                @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                {
                    entryCount++;
                    if (entryCount == 1)
                    {
                    <div id="con_four_1" class="hover">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link2_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                    }
                    else
                    {



                        string strcon_one2 = "con_four_" + entryCount;
                        
                                                
                    <div style="display: none;" id="@strcon_one2">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link2_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FDisplayDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                        
                    }
                }
            </div>
        </div>
    </div>
    <!--通知公告 END-->
    <!--稽查信息-->
    @{ShowConfigEnryList = new List<ElingOA6_DSJCJ.Model.ConfigEntry>();
      ShowConfigEnryList = ElingOA6_DSJCJ.Controllers.IndexController.GetSelfAndChildConfigEntry(configEntryList, configEntryList.Where(c => c.FKeyName == "doc_link3" && c.FConfigClass == "04").ToList()).Take(4).ToList();

      entryCount = 0;
    }
    <div style="WIDTH: 49%; float:right;" class="news ml10">
        <div class="news_t">
            <h2>@GetConfigShowText("doc_link3", "04", configList)
            </h2>
            <span><a href="/Index/DocumentIndex?keyName=doc_link3&keyClass=04" target="_blank">更多>></a></span></div>
        <div id="Tab1">
            <div class="Menubox">
                <ul>
                    @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                    {

                        entryCount++;
                        string oneentryCount = "one" + entryCount;
                        string url = "/Index/DocumentIndex?keyName=" + configEntryModel.FKeyName + "&keyClass=" + configEntryModel.FConfigClass + "&indexClsCd=" + configEntryModel.FDocClsCd;
                        if (entryCount <= ShowConfigEnryList.Count())
                        {
                            if (entryCount == 1)
                            {
                           
                        <li id="one1" class="hover" onclick="setTab('one',1,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                            else
                            {
                           
                        <li id="@oneentryCount" onclick="setTab('one',@entryCount ,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                        }
                        else
                        {

                        }
                    }
                    @* <li id="one1" class="hover" onclick="setTab('one',1,3)">基层信息</li>
                    <li id="one2" onclick="setTab('one',2,3)">本级信息</li>
                    <li id="one3" onclick="setTab('one',3,3)">统计报表</li>*@
                </ul>
            </div>
            <div class="Contentbox">
                @{entryCount = 0;}
                @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                {
                    entryCount++;
                    if (entryCount == 1)
                    {
                    <div id="con_one_1" class="hover">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link3_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                    }
                    else
                    {



                        string strcon_one = "con_one_" + entryCount;
                        
                                                
                         <div style="display: none;" id="@strcon_one"> 
                        
                    <div class="news_c">
                        <ul>
                             @{documentList = new List<DocumentGridModel>();
                               key = "doc_link3_04_" + configEntryModel.FDocClsCd;
                               if (Model.ContainsKey(key))
                               {
                                   documentList = Model[key];
                               }
                                }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
                        
                    }
                }
               
            </div>
        </div>
    </div>
    <!--稽查信息 END-->
    <!--工作动态-->
    @{ShowConfigEnryList = new List<ElingOA6_DSJCJ.Model.ConfigEntry>();
      ShowConfigEnryList = ElingOA6_DSJCJ.Controllers.IndexController.GetSelfAndChildConfigEntry(configEntryList, configEntryList.Where(c => c.FKeyName == "doc_link4" && c.FConfigClass == "04").ToList()).Take(4).ToList();

      entryCount = 0;
    }
    <div style="WIDTH: 49%" class="news">
        <div class="news_t">
            <h2>@GetConfigShowText("doc_link4", "04", configList)
            </h2>
            <span><a href="/Index/DocumentIndex?keyName=doc_link4&keyClass=04" target="_blank">更多>></a></span></div>
        <div id="Tab2">
            <div class="Menubox">
                <ul>
                    @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                    {

                        entryCount++;
                        string oneentryCount = "two" + entryCount;
                        string url = "/Index/DocumentIndex?keyName=" + configEntryModel.FKeyName + "&keyClass=" + configEntryModel.FConfigClass + "&indexClsCd=" + configEntryModel.FDocClsCd;
                        if (entryCount <= ShowConfigEnryList.Count())
                        {
                            if (entryCount == 1)
                            {
                           
                        <li id="two1" class="hover" onclick="setTab('two',1,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                            else
                            {
                           
                        <li id="@oneentryCount" onclick="setTab('two',@entryCount ,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                        }
                        else
                        {

                        }
                    }
                    @* <li id="one1" class="hover" onclick="setTab('one',1,3)">基层信息</li>
                    <li id="one2" onclick="setTab('one',2,3)">本级信息</li>
                    <li id="one3" onclick="setTab('one',3,3)">统计报表</li>*@
                </ul>
            </div>
            <div class="Contentbox">
                @{entryCount = 0;}
                @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                {
                    entryCount++;
                    if (entryCount == 1)
                    {
                    <div id="con_two_1" class="hover">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link4_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                    }
                    else
                    {



                        string strcon_one = "con_two_" + entryCount;
                        
                                                
                         <div style="display: none;" id="@strcon_one"> 
                        
                    <div class="news_c">
                        <ul>
                             @{documentList = new List<DocumentGridModel>();
                               key = "doc_link4_04_" + configEntryModel.FDocClsCd;
                               if (Model.ContainsKey(key))
                               {
                                   documentList = Model[key];
                               }
                                }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
                        
                    }
                }
               
            </div>
        </div>
    </div>
   @* <div style="width: 364px;" class="news">
        <div class="news_t">
            <h2>@GetConfigShowText("doc_link3", "04", configList)
            </h2>
            <span><a href="/Index/DocumentIndex?keyName=doc_link3&keyClass=04" target="_blank">更多>></a></span></div>
        <div id="Tab2">
            <div class="Menubox">
                <ul>
                    <li id="two1" class="hover" onclick="setTab('two',1,3)">重点工作</li>
                    <li id="two2" onclick="setTab('two',2,3)">作风建设</li>
                    <li id="two3" onclick="setTab('two',3,3)">党工群妇</li>
                </ul>
            </div>
            <div class="Contentbox">
                <div id="con_two_1" class="hover">
                    <div class="news_c">
                        <ul>
                            @{documentList = new List<DocumentGridModel>();
                              key = "doc_link3_04";
                              if (Model.ContainsKey(key))
                              {
                                  documentList = Model[key];
                              }
                                                          
                            }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
                <div style="display: none;" id="con_two_2">
                    <div class="news_c">
                        <ul>
                            @{documentList = new List<DocumentGridModel>();
                              key = "doc_link4_04";
                              if (Model.ContainsKey(key))
                              {
                                  documentList = Model[key];
                              }
                                                          
                            }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
                <div style="display: none;" id="con_two_3">
                    <div class="news_c">
                        <ul>
                            @{documentList = new List<DocumentGridModel>();
                              key = "doc_link3_04";
                              if (Model.ContainsKey(key))
                              {
                                  documentList = Model[key];
                              }
                                                          
                            }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>*@
    <!--工作动态 END-->
    <!--稽查案例库-->
    <div style="WIDTH: 49%; float:right;" class="news ml10">
        <div class="news_t">
            <h2>@GetConfigShowText("doc_link5", "04", configList)</h2>
            <span><a href="/Index/DocumentIndex?keyName=doc_link6&keyClass=04" target="_blank">更多>></a></span></div>
        <div class="news_c">
            <ul>
                @{documentList = new List<DocumentGridModel>();
                  key = "doc_link5_04";
                  if (Model.ContainsKey(key))
                  {
                      documentList = Model[key];
                  }
                                                          
                }
                @foreach (DocumentGridModel documentModel in documentList)
                {
                    <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                }
            </ul>
        </div>
    </div>
    <!--稽查案例库 END-->
    <!--学习园地-->
      
         @{ShowConfigEnryList = new List<ElingOA6_DSJCJ.Model.ConfigEntry>();
           ShowConfigEnryList = ElingOA6_DSJCJ.Controllers.IndexController.GetSelfAndChildConfigEntry(configEntryList, configEntryList.Where(c => c.FKeyName == "doc_link6" && c.FConfigClass == "04").ToList()).Take(8).ToList();

           entryCount = 0;
    }
    <div style="MARGIN-BOTTOM: 0px; WIDTH: 100%" class="news">
        <div class="news_t">
            <h2>
                @GetConfigShowText("doc_link6", "04", configList)</h2>
            <span><a href="/Index/DocumentIndex?keyName=doc_link6&keyClass=04">更多&gt;&gt;</a></span></div>
        <div id="Tab3">
   
            <div class="Menubox">
                <ul>
                    @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                    {

                        entryCount++;
                        string threeCount = "three" + entryCount;
                        string url = "/Index/DocumentIndex?keyName=" + configEntryModel.FKeyName + "&keyClass=" + configEntryModel.FConfigClass + "&indexClsCd=" + configEntryModel.FDocClsCd;
                        if (entryCount <= ShowConfigEnryList.Count())
                        {
                            if (entryCount == 1)
                            {
                           
                        <li id="three1" class="hover" onclick="setTab('three',1,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                            else
                            {
                           
                        <li id="@threeCount" onclick="setTab('three',@entryCount ,@ShowConfigEnryList.Count())">@configEntryModel.FShowText</li>
                            }
                        }
                        else
                        {

                        }
                    }
                    @* <li id="one1" class="hover" onclick="setTab('one',1,3)">基层信息</li>
                    <li id="one2" onclick="setTab('one',2,3)">本级信息</li>
                    <li id="one3" onclick="setTab('one',3,3)">统计报表</li>*@
                </ul>
            </div>
            <div class="Contentbox">
                @{entryCount = 0;}
                @foreach (ElingOA6_DSJCJ.Model.ConfigEntry configEntryModel in ShowConfigEnryList)
                {
                    entryCount++;
                    if (entryCount == 1)
                    {
                    <div id="con_three_1" class="hover">
                        <div class="news_c">
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link6_04_" + configEntryModel.FDocClsCd;
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </div>
                    </div>
                    }
                    else
                    {



                        string strcon_three = "con_three_" + entryCount;
                        
                                                
                         <div style="display: none;" id="@strcon_three"> 
                        
                    <div class="news_c">
                        <ul>
                             @{documentList = new List<DocumentGridModel>();
                               key = "doc_link6_04_" + configEntryModel.FDocClsCd;
                               if (Model.ContainsKey(key))
                               {
                                   documentList = Model[key];
                               }
                                }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
                        
                    }
                }
     
            </div>
        </div>
    </div>

   @* <div style="width: 740px; margin-bottom: 0px;" class="news">
        <div class="news_t">
            <h2>
                学习园地</h2>
            <span><a href="#">更多&gt;&gt;</a></span></div>
        <div id="Tab3">
            <div class="Menubox">
                <ul>
                    <li id="three1" class="hover" onclick="setTab('three',1,4)">政治学习</li>
                    <li id="three2" onclick="setTab('three',2,4)">业务学习</li>
                    <li id="three3" onclick="setTab('three',3,4)">理论调研</li>
                    <li id="three4" onclick="setTab('three',4,4)">生活小贴士</li>
                </ul>
            </div>
            <div class="Contentbox">
                <div id="con_three_1" class="hover">
                    <div class="news_c2">
                        <ul>
                            @{documentList = new List<DocumentGridModel>();
                              key = "doc_link4_04";
                              if (Model.ContainsKey(key))
                              {
                                  documentList = Model[key];
                              }
                                                          
                            }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
                <div style="display: none;" id="con_three_2">
                    <div class="news_c2">
                        <ul>
                            @{documentList = new List<DocumentGridModel>();
                              key = "doc_link3_04";
                              if (Model.ContainsKey(key))
                              {
                                  documentList = Model[key];
                              }
                                                          
                            }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
                <div style="display: none;" id="con_three_3">
                    <div class="news_c2">
                        <ul>
                            <ul>
                                @{documentList = new List<DocumentGridModel>();
                                  key = "doc_link4_04";
                                  if (Model.ContainsKey(key))
                                  {
                                      documentList = Model[key];
                                  }
                                                          
                                }
                                @foreach (DocumentGridModel documentModel in documentList)
                                {
                                    <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                                }
                            </ul>
                        </ul>
                    </div>
                </div>
                <div style="display: none;" id="con_three_4">
                    <div class="news_c2">
                        <ul>
                            @{documentList = new List<DocumentGridModel>();
                              key = "doc_link4_04";
                              if (Model.ContainsKey(key))
                              {
                                  documentList = Model[key];
                              }
                                                          
                            }
                            @foreach (DocumentGridModel documentModel in documentList)
                            {
                                <li><span>@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                            }
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>*@
    <!--学习园地 END-->
    <div class="clear">
    </div>
</div>
  @if (!string.IsNullOrEmpty(OperateSession.get(GlobalConstant.PARAM_LOGINID)))
{ 
 
            
        @Html.DevExpress().PopupControl(
            settings =>
            {
                settings.Name = "popfirst";
                settings.Styles.Header.Paddings.PaddingBottom = 0;
                settings.Styles.Header.Paddings.PaddingLeft = 240;
                settings.EnableAnimation = false;
                settings.EnableClientSideAPI = true;
                settings.ShowHeader = true;
                settings.Width = System.Web.UI.WebControls.Unit.Pixel(500);
                settings.Height = System.Web.UI.WebControls.Unit.Pixel(218);
                settings.LoadingPanelText = "更新中";
                settings.ShowLoadingPanel = true;
                //  settings.Modal = true;
                settings.Styles.Content.Paddings.Padding = System.Web.UI.WebControls.Unit.Pixel(0);
                settings.Styles.Content.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
                // settings.Styles.Footer.VerticalAlign = System.Web.UI.WebControls.VerticalAlign.Top;
                // settings.Styles.Footer.Paddings.PaddingBottom = 0;
                // settings.Styles.Footer.Paddings.Padding =0;
                settings.ControlStyle.Paddings.Padding = 0;
                //  settings.Styles.Content.Paddings.PaddingBottom=System.Web.UI.WebControls.Unit.Pixel(0);

                settings.PopupHorizontalAlign = PopupHorizontalAlign.WindowCenter;
                settings.PopupVerticalAlign = PopupVerticalAlign.WindowCenter;
                settings.HeaderText = "提醒";
                settings.ShowFooter = false;

                settings.SetContent(() =>
                {

                    ViewContext.Writer.Write("<iframe  id='popContent' name='popContent'scrolling='no' style='width:502px;height:220px;margin-bottom: -3px;' frameborder='0'src='" + @Url.Content("/ElingOA6_Admin_DSJCJ/Admin/Calendar/remindpopup") + "' ></iframe>");
                   
                    
                   // ViewContext.Writer.Write("<iframe  id='popContent' name='popContent' style='width:502px;height:220px; overflow: visible;' frameborder='0'src='" + @Url.Content("/ElingOA6_Admin_DSJCJ/Admin/Calendar/remindpopup") + "' ></iframe>");
                    // Html.RenderPartial("remindpopup", ViewData["rmdcdr"]);

                });
            }).GetHtml()
}
    
@*
</div></div>*@
</body>
</html>
